package com.example.emos.wx.config.shiro;
import org.apache.shiro.authc.AuthenticationToken;



/**
 * @program: emos-wx-api
 * @author: JackLiang
 * @create: 2021-03-27 08:16
 **/
/*
* 将jwt与shiro结合，将客户端提交的token对象封装成AuthenticationToken对象
* */
public class OAuth2Token implements AuthenticationToken {
    private String token;

    public OAuth2Token(String token){
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}

